package com.sans.start;

import org.junit.Test;

/**
 * @author Sans
 */
public class PackingTest {
    @Test
    public void boxing(){
        Byte by =100;
        Short sh = 200;
        Integer in = 300;
        Long lo = 400L;
        Double dou = 3.5;
        Float fl = 3.6F;
        Boolean bo = true;
        Character ch = 'a';

        System.out.println(by);
        System.out.println(sh);
        System.out.println(in);
        System.out.println(lo);
        System.out.println(dou);
        System.out.println(fl);
        System.out.println(bo);
        System.out.println(ch);
    }
    @Test
    public void Unboxing(){
        Integer integer = new Integer(177);
        int result = integer;
        System.out.println(result);
    }
}
